package com.jinjiafeng.framelibrary.banner;

import android.content.Context;
import android.view.animation.Interpolator;
import android.widget.Scroller;

/**
 * @author jinjiafeng
 *         Time :18-5-26
 */

class BannerScroller  extends Scroller{
    private int mScrollDuration = 1000;
     BannerScroller(Context context) {
        this(context,null);
    }

     BannerScroller(Context context, Interpolator interpolator) {
        this(context, interpolator,false);
    }

    BannerScroller(Context context, Interpolator interpolator, boolean flywheel) {
        super(context, interpolator, flywheel);
    }

    @Override
    public void startScroll(int startX, int startY, int dx, int dy, int duration) {
        super.startScroll(startX, startY, dx, dy, mScrollDuration);
    }

    void setScrollDuration(int scrollDuration){
        this.mScrollDuration = scrollDuration;
    }
}
